package com.starp.add.entity;

import lombok.Data;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
import javax.persistence.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * @description student
 * @author mqp
 * @date 2021-08-20
 */
@Entity
@Data
@Table(name="student")
@ApiModel("student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
    * name
    */
    @ApiModelProperty("name")
    @Column(name="name")
    private String name;

    /**
    * id
    */

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty("id")
    @Column(name="id")
    private Integer id;

    /**
    * class_id
    */
    @ApiModelProperty("class_id")
    @Column(name="class_id")
    private Integer classId;

    /**
    * score
    */
    @ApiModelProperty("score")
    @Column(name="score")
    private Integer score;

    /**
    * class_name
    */
    @ApiModelProperty("class_name")
    @Column(name="class_name")
    private String className;

    public Student() {
    }

}